package com.ssh.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ssh.entity.Role;
import com.ssh.repository.RoleRepository;
import com.ssh.service.RoleService;

@Service
public class RoleServiceImpl implements RoleService {
	
	@Autowired
	private RoleRepository roleRepository;

	@Override
	public Long saveRole() {
		Role role = new Role();
		role.setRoleName("人力资源");
		role.setRoleMemo("招聘");
		return roleRepository.save(role);
	}
	
}
